//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package xml;

import java.util.HashMap;
import java.util.Map;

public class ConfigXml {
    public ConfigXml() {
    }
    
    public static Map<String, Map<String, String>> readConfig() {
        Map mysqlMap = new HashMap();
        mysqlMap.put("databaseTYPE", "MYSQL");
        mysqlMap.put("driverName", "com.mysql.jdbc.Driver");
        mysqlMap.put("url", "jdbc:mysql://[ip]:3306/[db]?useUnicode=true&amp;characterEncoding=UTF8");
        mysqlMap.put("dialect", "org.hibernate.dialect.MySQLInnoDBDialect");
        mysqlMap.put("generator", "<![CDATA[<generator class=\"native\"></generator>]]>");
        Map oracleMap = new HashMap();
        oracleMap.put("databaseTYPE", "ORACLE");
        oracleMap.put("driverName", "oracle.jdbc.driver.OracleDriver");
        oracleMap.put("url", "jdbc:oracle:thin:@[ip]:1521:ORCL");
        oracleMap.put("dialect", "org.hibernate.dialect.Oracle10gDialect");
        oracleMap.put("generator", "<![CDATA[<generator class=\"org.hibernate.id.SequenceGenerator\"><param name=\"sequence\">[table]_seq</param></generator>]]>");
        Map map = new HashMap();
        map.put("MYSQL", mysqlMap);
        map.put("ORACLE", oracleMap);
        return map;
    }
}
